package com.lswms.service;

import java.util.List;

import com.lswms.common.service.CrudService;
import com.lswms.dto.YnDcProdDTO;
import com.lswms.dto.vo.req.DcConfirmUserInfoReq;
import com.lswms.dto.vo.req.DcDataDetailReq;
import com.lswms.dto.vo.req.DcIndexDataReq;
import com.lswms.dto.vo.resp.DcDataDetailResp;
import com.lswms.dto.vo.resp.DcDataInfoResp;
import com.lswms.dto.vo.resp.DcIndexDataResp;
import com.lswms.entity.YnDcProdEntity;
import com.lswms.entity.YnUserEntity;

/**
 * 产品表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-07-24
 */
public interface YnDcProdService extends CrudService<YnDcProdEntity, YnDcProdDTO> {

	/**
	 * 首页数据
	 * @return
	 */
	public List<DcIndexDataResp> dcIndexData(DcIndexDataReq dto);
	
	/**
	 * 产品列表
	 * @return
	 */
	public List<DcDataInfoResp> dcDataList();
	/**
	 * 产品详情
	 * @return
	 */
	public DcDataDetailResp dcDataDetail(DcDataDetailReq dto);
	/**
	 * 对象转换
	 * @param prodEntity
	 * @return
	 */
	public DcDataInfoResp convetInfo(YnDcProdEntity prodEntity);
	
	/**
	 * 产品详情提交用户信息
	 * @return
	 */
	public String dcConfirmUserInfo(DcConfirmUserInfoReq dto,YnUserEntity ynuser);
	/**
	 * 获取一个推荐产品
	 * @return
	 */
	public YnDcProdEntity getRecommendProd();
	
}